package com.cskaoyan.bean.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
@AllArgsConstructor
@Data
@NoArgsConstructor
public class MarketAdmin {
    private Integer id;

    @Length(min = 3,max = 9)
    private String username;
    private String password;

    private String lastLoginIp;
    //@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastLoginTime;

    private String avatar;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;
    // 数据库里的列 role_ids → varchar
    // 做查询 varchar → String → Integer[]      输出映射getResult
    // 做新增 Integer[] → String → varchar      输入映射setParameter
    // varchar ↔ Integer[]
    //private String roleIds;
    private Integer[] roleIds;

}
